<template>
    <div class="myinput">
       <!-- <el-input :clearable='clearable' :maxlength="maxlength" v-model="username"></el-input> -->
       <el-input v-on="$listeners" v-bind="$attrs" v-model="username"></el-input>
       <el-button type="primary"  v-on="$listeners">按钮</el-button>
    </div>
</template>
<script>
export default {
    props:{
    //    maxlength:{
    //     type:Number,
    //     default:5
    //    },
    //    clearable:{
    //      type:Boolean,
    //     default:false
    //    } 
        
    },
    data() {
        return {
            username:''
        }
    },
    methods: {
        // add() {
        //     this.$emit('add','abc')
        // },
    },
    created(){
         console.log(this.$listeners);
    }
}
</script>
<style lang="scss" scoped>

</style>